import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import axios from 'axios'

//路由守卫
// router.beforeEach((to, from, next) => {
//     if (to.meta, isLogin == false) {
//         let userName = sessionStorage('userName')
//         if (userName !== null) {
//             next()
//         } else {
//             next('/login')
//         }


//     } else {
//         next()
//     }
// })
createApp(App).use(router).use(ElementPlus).mount('#app')
